<?php

defined('SYSPATH') or die('No direct script access.');

class Controller_Admin_Based extends Controller_Template {

    public function before() {
        
           if ($this->request->is_ajax()) {
            $this->auto_render = FALSE;
        }
        
        $user = Session::instance()->get('chr_uid');
       
        if(!$user){
             Request::current()->redirect('/admin/user/login');   
        } 
    }
}

?>
